package com.kgc.scd.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kgc.scd.bean.Comment;
import com.kgc.scd.form.CommentForm;
import com.kgc.scd.form.ReviewForm;
import com.kgc.scd.util.PageSupport;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created On : 2022/11/14.
 * <p>
 * Author : Administrator
 * <p>
 * Description:评论接口
 */
public interface CommentService {

    /**
     * @author : Administrator
     * @date   : 2022/11/14
     * @param  : [userId, pageNo, pageSize]
     * @return : com.kgc.scd.util.PageSupport<com.kgc.scd.bean.Comment>
     * @description : 根据用户id带分页查询评论
     */
    PageSupport<Comment> getCommentListAndPage(String goodsId, Integer pageNo, Integer pageSize);

    /**
     * @author : Administrator
     * @date   : 2022/11/15
     * @param  : [comment]
     * @return : boolean
     * @description : 根据用户状态增加评论增加评论
     */

    boolean addCommentList(@RequestBody CommentForm commentForm);

    /**
     * @author : Administrator
     * @date   : 2022/11/15
     * @param  : [reviewForm]
     * @return : boolean
     * @description : 追加评论
     */

    boolean updateReviewList(@RequestBody ReviewForm reviewForm);
}
